﻿/**
 * ...
 * @author	Kliment
 * @version	1.2.4
 */
class kliment.utils._Object {
	
	static public function copy(value:Object):Object {
		var result:Object = new Object();
		copyTo(value, result);
		return result;
	}
	
	static public function copyTo(from:Object, to:Object):Void {
		for (var i in from) 
			to[i] = from[i];
	}
	
	static public function unify(source:Object) {
		return source;
	}
	
	static public function setProperty(target:Object, property:String, value:Object):Object { 
		return (target[property] = value);
	}
}